package org.tuoren.official.domain.bo;

import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.official.domain.TInnovationWardDetail;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 科技创新详情业务对象 t_innovation_ward_detail
 *
 * @author Lion Li
 * @date 2024-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TInnovationWardDetail.class, reverseConvertGenerate = false)
public class TInnovationWardDetailBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 年份
     */
    @NotBlank(message = "年份不能为空", groups = { AddGroup.class, EditGroup.class })
    private String year;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 资源url
     */
    @NotBlank(message = "资源url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wardUrl;

    /**
     * 是否发布（0：否；1：是）
     */
    //@NotBlank(message = "是否发布不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isPublish;
}
